﻿#define _CRT_SECURE_NO_WARNINGS
#include <iostream>

using namespace std;

#include "AVLTree.h"

int main()
{
    const int N = 10000;
    AVLTree::AVLTree<int,int> t;
    for (int i = 0; i <= N; ++i) t.insert({i,i});
    if (t.isAVL()) cout << "合法" << endl;
    else cout << "不合法" << endl;
    cout << "树高度：" << t.getHigh() << endl;
    return 0;
}


